<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      p {
        height: 400px;
        font-size: 3rem;
        border: solid;
      }
    </style>
  </head>
  <body>
    <p>hello p1</p>
    <p>hello p2</p>
    <p>hello p3</p>
    <p>hello p4</p>
    <p>hello p5</p>
    <p>hello p6</p>
    <p>hello p7</p>
    <script>
      window.addEventListener(
        "touchmove",
        (e) => {
          // e.preventDefault();
          console.log("hello");
        },
        {
          passive: true,
        }
      );
      // window.ontouchmove = function (e) {
      //   // 默认行为屏幕滑动
      //   e.preventDefault();;
      //   console.log("hello");
      // };
    </script>
  </body>
</html>
